Full Abstraction for PCF
نویسندگان
چکیده
An intensional model for the programming language PCF is described, in which the types of PCF are interpreted by games, and the terms by certain “history-free” strategies. This model is shown to capture definability in PCF. More precisely, every compact strategy in the model is definable in a certain simple extension of PCF. We then introduce an intrinsic preorder on strategies, and show that it satisfies some striking properties, such that the intrinsic preorder on function types coincides with the pointwise preorder. We then obtain an order-extensional fully abstract model of PCF by quotienting the intensional model by the intrinsic preorder. This is the first syntax-independent description of the fully abstract model for PCF. (Hyland and Ong have obtained very similar results by a somewhat different route, independently and at the same time). We then consider the effective version of our model, and prove a Universality Theorem: every element of the effective extensional model is definable in PCF. Equivalently, every recursive strategy is definable up to observational equivalence.
منابع مشابه
Logical Full Abstraction and PCF
We introduce the concept of logical full abstraction, generalising the usual equational notion. We consider the language PCF and two extensions with “parallel” operations. The main result is that, for standard interpretations, logical full abstraction is equivalent to equational full abstraction together with universality; the proof involves constructing enumeration operators. We also consider ...
متن کاملFull Abstraction and the Context Lemma 1
It is impossible to add a combinator to PCF to achieve full abstraction for models such asBerry's stable domains in a way analogous to the addition of the \parallel-or" combinatorthat achieves full abstraction for the familiar cpo model. In particular, we de ne a generalnotion of rewriting system of the kind used for evaluating simply typed -terms in Scott'sPCF. Any simply t...
متن کاملFull abstraction, totality and PCF
Inspired by a question of Riecke, we consider the interaction of totality and full abstraction, asking whether full abstraction holds for Scott’s model of cpos and continuous functions if one restricts to total programs and total observations. The answer is negative, as there are distinct operational and denotational notions of totality. However, when two terms are each total in both senses the...
متن کاملFull abstraction for a Linear PCF
We study S PCF , namely a Turing-complete programming language inspired by a semantic notion of linearity. S PCF is based on a linear core of PCF and some operators providing basic primitives related to exception handling and nondeterministic evaluation. We show that S PCF is fully abstract for a linear model in the category of coherence spaces and linear functions, giving a cogent evidence of ...
متن کامل